<div class="table-responsive">
  <div class="filter-bar">
	<form action="__CONTROLLER__/index" method="post" >
		<div class="view">
			<div class="row clearfix">
				<div class="col-md-3 column ui-sortable">
				    <label class="col-sm-3 control-label">代理名称</label>
				    <div class="col-sm-9">
				      <input type="text" id="name" class="form-control" name="name" placeholder="" value="{$param.name}">
				    </div>
				</div>
				<div class="col-md-3 column ui-sortable">
				    <div class="col-sm-9">
				       <input type="submit" class="btn btn-info submit" value="搜索"/>
				    </div>
				</div>
			</div>
		</div>
	</form>
  </div>
  <hr/>
  <table class="table table-hover">
    <thead>
      <tr>
        <th>ID</th>
        <th>代理商姓名</th>
        <th>所属客户</th>
        <th>客户邮箱</th>
        <th>联系人</th>
        <th>地址</th>
        <th>服务期限</th>
        <th>状态</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
    <volist name="agentLists" id="vo">
      <tr>
        <td>{$vo.id}</td>
        <td>{$vo.name}</td>
        <td>{$vo.customerName}</td>
        <td>{$vo.email}</td>
        <td>{$vo.contacts}<br>{$vo.tel}</td>
        <td>{$vo.provinceName} {$vo.cityName} {$vo.areaName}<br>{$vo.address|cutstr=###,0,20}</td>
        <td><notempty name="vo.begin_time">{$vo.begin_time|date="Y-m-d H:i",###}</notempty><br><notempty name="vo.end_time">{$vo.end_time|date="Y-m-d H:i",###}</notempty></td>
        <td class="status">{$vo["status"]?"正常":"禁止"}</td>
        <td>
          <a class="btn btn-primary btn-xs" href="__CONTROLLER__/modify/id/{$vo.id}">修改</a>
          <a class="btn btn-primary btn-xs" href="{:U('AgentAdmin/index', 'aid='.$vo['id'])}">管理员管理</a>
          <a class="btn btn-primary btn-xs" href="__CONTROLLER__/login/agentId/{$vo.id}" target="_blank">后台</a>
        </td>
      </tr>
    </volist>
    </tbody>
  </table>
</div>
<div class="pagination">{$pagination}</div>